#include "Blocks/DetonatorBlock.h"

namespace PocketSurvival
{
    int32_t DetonatorBlock::getIndex()
    {
        return Index();
    }
    const std::string &DetonatorBlock::getBlockName()
    {
        static std::string blockName = "DetonatorBlock";
        return blockName;
    }

    int32_t DetonatorBlock::getFace(int32_t value)
    {
        return Terrain::ExtractData(value) & 7;
    }

    const std::vector<BoundingBox> &DetonatorBlock::getCustomCollisionBoxes(int32_t value)
    {
        int32_t num = Terrain::ExtractData(value);
        return BlockConstans::detonatorCollisionBoxes[num];
    }

}